/*
 * @Descripttion: 后台医师存储的与移动端用户的聊天记录
 * @version: 
 * @Author: 
 * @Date: 2022-05-05 15:05:31
 * @LastEditors: weidelong
 * @LastEditTime: 2022-05-05 15:37:41
 */
const mongoose = require("./db")
const conn = mongoose.connection
conn.on("error", () => console.log("连接数据库失败"))

// 模型对象
const MobileUserMsgSchema  = mongoose.Schema({
  id: { type: String },
  msg: { type: String }, // 聊天内容
  addTime: { type: String } // 创建时间
});

const usermsg = mongoose.model("usermsgs", MobileUserMsgSchema )
module.exports = usermsg